Experts have always desired to obtain materials with the desired properties or required constituents. The optimization of Microstructures is considered to ensure optimal mode and accurate calculations. Microstructures, as heterogeneous materials, undergo an optimization process to optimize their structure. In this article, we implement topology optimization design for Multiphase elastic microstructure using a compensation factor and numerical homogenization method. During the study, numerical optimization is performed by applying calculations on design changes consisting of the volume percentage of each phase in each element. The technique used to solve the topology optimization problem involves dividing it into several series of two-phase subproblems, with a conventional two-phase operator used in the optimization space. In this research, we obtained values of 0.7264, 0.4447, and 0.3008 for shear modulus, bulk modulus, and axial stiffness, respectively. Generally, the calculation rate depends on the number of phases involved in the structure design process. Previous studies have addressed this question for symmetric, symmetrical, and two-phase Microstructures. However, in this study, we address this design problem by creating tensors of material properties as a function of the volume percentage. This approach is achieved by defining a design space and establishing regular upper and lower boundaries for local features. These boundaries are maintained to ensure consistency and standardization in subsequent works related to Multiphase microstructure design.